aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.te...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-15 15:47:58 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-15 15:47:58 +0000
commit3ed2ca517aa5f2424f238817844d8a8eb98e64c2 (patch)
tree8dc70ba88ce76b22f2539adc932deab0c00ac0c1 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent549ec911f67484c875a09d4b5b8a9a4fc0ecc806 (diff)
Implement int ops in runtime
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected17
1 files changed, 7 insertions, 10 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index 524c5179..24502c39 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushIntTests]/[method:pushIntInstructionGeneratesIntGetInstruction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -1,22 +1,19 @@
Compilation unit elements:
+(
+ function-decl
+ "shed__runtime__int_create"
+ params=((param "value" int))
+ return-type=int
+)
Locals:
* (val "int__0" int)
- * (val "intPointer__0" data-ptr)
Instructions:
(
- (alloc-heap (local "intPointer__0") (struct (int)))
- (
- memory-store
- pointer=(local "intPointer__0")
- layout=(struct (int))
- offset=(0)
- value=(int 42)
- )
- (data-ptr-to-int (local "int__0") (local "intPointer__0"))
+ (call (local "int__0") "shed__runtime__int_create" ((int 42)))
)
Temporary stack: